package kr.hkit.PowerJava.chapter06.work;

import java.util.Scanner;

public class Moonje1 {
	public static void main(String[] args) {
		int a, b, c;
		Scanner input = new Scanner(System.in);
		System.out.print("정수를 입력하시오: ");
		a = input.nextInt();
		System.out.print("정수를 입력하시오: ");
		b = input.nextInt();
		System.out.print("정수를 입력하시오: ");
		c = input.nextInt();
		compare(a, b, c);
	}

	static void compare(int a, int b, int c) {

		if (a > b) {
			if (b > c)
				System.out.printf("정렬된 숫자: " + c + b + a);
			else if (a > c)
				System.out.printf("정렬된 숫자: " + b + c + a);
			else
				System.out.printf("정렬된 숫자: " + b + a + c);
		} else if (a > c)
			System.out.printf("정렬된 숫자: " + c + a + b);
		else if (b > c)
			System.out.printf("정렬된 숫자: " + a + c + b);
		else
			System.out.printf("정렬된 숫자: " + a + b + c);
	}

}
